package org.spring.learn.demo.annotation.injections.autowired;

import org.spring.learn.project.entity.Bird;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan(
        {"org.spring.learn.project.controller",
        "org.spring.learn.project.service",
        "org.spring.learn.project.dao"}
)
public class MyConfig {

    @Bean
    public Bird bird() {
        return new Bird();
    }


}
